import request from '@/utils/request'


export function getNotice(currentPage,pageSize,query){
  return request({
    url: `/notice/${currentPage}/${pageSize}`,
    headers: {
      isToken: true
    },
    method: 'get',
    params: query
  })
}



export function deleteNotice(id){
  return request({
    url:'/notice/'+id,
    headers: {
      isToken: true
    },
    method: 'delete',
  })
}


export function insertNotice(data){
  return request({
    url:'/notice',
    headers: {
      isToken: true
    },
    data:data,
    method: 'post',
  })
}


export function  edit1(data){
  return request({
    url:'/notice',
    headers: {
      isToken: true
    },
    data:data,
    method:'put'
  })
}
